package com.cf.user.feign;

import com.cf.user.dto.UserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author ChenFeng
 * @date 2021/11/8 2:48 下午
 * @description
 */
@Component
@FeignClient(name = "sword-user")
public interface UserFeign {

    @GetMapping("/getUserByUsername")
    UserDTO getUserByUsername(@RequestParam("username") String username);

}
